/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.desktop.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springblade.core.mp.base.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-09-18
 */
@Data
@TableName("nicetuan_user_sync")
@ApiModel(value = "UserSync对象", description = "UserSync对象")
@NoArgsConstructor
@AllArgsConstructor
public class UserSync extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 主键
	*/
		@ApiModelProperty(value = "主键")
		@TableId(value = "id", type = IdType.AUTO)
	    private Long id;
	/**
	* 钉钉员工
	*/
		@ApiModelProperty(value = "钉钉员工")
		private String userid;
	/**
	* 用户在当前开发者企业账号范围内的唯一标识
	*/
		@ApiModelProperty(value = "用户在当前开发者企业账号范围内的唯一标识")
		private String unionid;
	/**
	* 员工姓名
	*/
		@ApiModelProperty(value = "员工姓名")
		private String name;
	/**
	* 手机号
	*/
		@ApiModelProperty(value = "手机号")
		private String mobile;
	/**
	* 分机号
	*/
		@ApiModelProperty(value = "分机号")
		private String telephone;
	/**
	* 员工工号
	*/
		@ApiModelProperty(value = "员工工号")
		private String jobNumber;
	/**
	* 职位
	*/
		@ApiModelProperty(value = "职位")
		private String title;
	/**
	* 邮箱
	*/
		@ApiModelProperty(value = "邮箱")
		private String email;

	/**
	* 		所属部门ID列表
	*/
		@ApiModelProperty(value = "所属部门ID列表")
		private Long deptIdList;

		@JSONField(name = "dept_id_list")
		@TableField(exist = false)
	 	@ApiModelProperty(value = "所属部门ID列表s")
		 private List<Long> deptIdLists;
	/**
	* 用户登录名
	*/
		@ApiModelProperty(value = "用户登录名")
		private String userPrincipalName;


}
